home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18483 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Re: Borland should be ashamed.  My experience with BC5.0.
  5. Date: 20 Apr 1996 19:58:16 -0500
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4lc178$pjt@solutions.solon.com>
  8. References: <4l6d1b$219@linet06.li.net> <4l8j3cINNfbr@keats.ugrad.cs.ubc.ca> <4lbquv$r3k@linet06.li.net>
  9. Reply-To: seebs@solon.com
  10. NNTP-Posting-Host: solutions.solon.com
  11.  
  12. In article <4lbquv$r3k@linet06.li.net>, Bob Silvern <bsilvern@li.net> wrote:
  13. >I paid $350 to "upgrade" to BC5.0, only to find it is inferior to the version I
  14. >was previously using.  Please feel free to give as much of your money away to
  15. >Borland as you please, but when I pay money I expect something in return.
  16.  
  17. So complain to Borland, or the local Better Business Bureau.
  18.  
  19. >Yes, optimization was turned off.  BTW, even if optimization were enabled,
  20. >would it be OK for the debugger to display the incorrect value for a variable?
  21.  
  22. Sure.  It's canonical behavior, which is why something like two thirds of
  23. compilers in use a couple of years ago are *incapable* of producing debugging
  24. symbols and optimizing in the same piece of code.  I've seen $5,000+ compiler
  25. toolsets that couldn't even provide the situation you're finding a bug in,
  26. because they feel that debugging and optimizing do not need to happen to
  27. the same piece of code.
  28.  
  29. Further, from the point of view of the language, it is permissible for the
  30. debugger to not exist, or to misbehave randomly; it is not a requirement of
  31. the language.
  32.  
  33. Debug by instrumenting your code properly; you will find that debuggers are
  34. nearly useless compared to a good error log.
  35.  
  36. >I could live with it displaying no value at all, but displaying the wrong value
  37. >I think you would have to consider a bug.
  38.  
  39. It depends.  Go look through the documentation and see under what
  40. circumstances it guarantees it will display correct values.  Some
  41. debuggers will document limitations in this respect.
  42.  
  43. -s
  44. -- 
  45. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  46. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  47. Unsolicited email is not welcome, and will be billed for at consulting rates.
  48. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  49.